<?php
class EmrErrorCode {        
    const ODON_EMR_PROFILE_NOT_FOUND = "ODON_EMR_001";
    const WRONG_C_ICD10_CODE = "ODON_EMR_002";  
    const WRONG_P_ICD10_CODE = "ODON_EMR_003";
    public static function getErrorMess($errCode, $input1=null,$input2=null,$input3=null,$input4 = null) {
        switch ($errCode) {
            case EmrErrorCode::ODON_EMR_PROFILE_NOT_FOUND:
                return L10nHelper::_("Saving medical profile failed. This profile not created yet, please register at receptionist");
            case EmrErrorCode::WRONG_C_ICD10_CODE:
                return L10nHelper::_("Wrong ICD10 code");
            case EmrErrorCode::WRONG_P_ICD10_CODE:
                return L10nHelper::_("Wrong ICD10 code");
            default:
                ;
                break;
        }
            
    }
}
?>